<html>
<body>
<p>Reports <code>fold</code> and <code>reduce</code> methods that could be replaced with <code>sum</code>,
  <code>product</code>, <code>max</code>, or <code>min</code>.</p>
<p><b>Example:</b></p>
<pre><code>
  List(1, 2, 3).foldLeft(1){(x,y) => x * y}
  List(1, 2, 3).fold(0)(_ + _)
  List(1, 2, 3).reduce(_ + _)
  List(1, 2, 3).reduceLeft(_ min _)
  List(1, 2, 3).reduce((x, y) => math.max(x, y))
</code></pre>
<p>After the quick-fix is applied:</p>
<pre><code>
  List(1, 2, 3).product
  List(1, 2, 3).sum
  List(1, 2, 3).sum
  List(1, 2, 3).min
  List(1, 2, 3).max
</code></pre>
<!-- tooltip end -->
</body>
</html>